
import Request from '../util/request'

export default class Address extends Request {

  tree(data) {
    return this.request({
      url: '/h5/city/tree',
      data
    })
  }

  // 查看地址
  view(data) {
    return this.request({
      url: '/h5/execute/address/view',
      data
    })
  }

  edit(data) {
    return this.request({
      url: '/h5/execute/address/edit',
      data
    })
  }

  remove(data) {
    return this.request({
      url: '/h5/execute/address/delete',
      data
    })
  }

  list(data) {
    return this.request({
      url: '/h5/execute/address/list',
      data
    })
  }

  setDefault(data) {
    return this.request({
      url: '/h5/execute/address/set-default',
      data
    })
  }



}
